package com.ruoyi.project.digital.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 用户与宠物的聊天详情对象 t_pet_message_details
 *
 * @author ruoyi
 * @date 2023-11-01
 */
@TableName("t_pet_message_details")
public class PetMessageDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 是否已读  0代表未读，1代表已读 */
    @Excel(name = "是否已读  0代表未读，1代表已读")
    private String isRead;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 0代表用户，1代表宠物 */
    @Excel(name = "0代表用户，1代表宠物")
    private String type;
    /** 0代表用户，1代表宠物 */
    @Excel(name = "0 正常 1代表喜欢，2代表踩")
    private String isLike;


    /** 回话id */
    @Excel(name = "回话id")
    private Long messageId;

    @TableField(exist = false)
    private String messageTitle;

    /** 主键 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    public void setIsRead(String isRead)
    {
        this.isRead = isRead;
    }

    public String getIsRead()
    {
        return isRead;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setMessageId(Long messageId)
    {
        this.messageId = messageId;
    }

    public Long getMessageId()
    {
        return messageId;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("isRead", getIsRead())
            .append("content", getContent())
            .append("type", getType())
            .append("messageId", getMessageId())
            .append("id", getId())
            .toString();
    }

    public String getIsLike() {
        return isLike;
    }

    public void setIsLike(String isLike) {
        this.isLike = isLike;
    }

    public String getMessageTitle() {
        return messageTitle;
    }

    public void setMessageTitle(String messageTitle) {
        this.messageTitle = messageTitle;
    }
}
